]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Always make notifications with '\n' in bannerText expandable
authorFlorian Müllner <fmuellner@src.gnome.org>
Mon, 22 Feb 2010 21:05:42 +0000 (22:05 +0100)
committerFlorian Müllner <fmuellner@src.gnome.org>
Mon, 22 Feb 2010 22:41:09 +0000 (23:41 +0100)
Right now notifications are expandable if the length of bannerText
exceeds the notification's width - however, if bannerText contains
newlines, it should be expandable regardless of the length.

https://bugzilla.gnome.org/show_bug.cgi?id=610549

js/ui/messageTray.js

index 2b11387e33563242052226aadae9ed86b8f60556..2907f920d3f30e9201c5343a7a300243303a1e95 100644 (file)
@@ -287,7 +287,8 @@ Notification.prototype = {
                 overflow = true;
         }
 
-        if (overflow && this._bannerBodyText)
+        if (this._bannerBodyText &&
+            (overflow || this._bannerBodyText.indexOf('\n') > -1))
             this._addBannerBody();
     },